//
//  YXPersonMessageTableViewCell.m
//  跑跑快销
//
//  Created by 杨潇 on 14-4-24.
//  Copyright (c) 2014年 YX. All rights reserved.
//

#import "YXPersonMessageTableViewCell.h"

@implementation YXPersonMessageTableViewCell
@synthesize rightLab,showImgBtn;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        float labH = 20;
        showImgBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        showImgBtn.backgroundColor = [UIColor clearColor];
        showImgBtn.center = CGPointMake(52, 42);
        showImgBtn.layer.cornerRadius = 32.5;
        showImgBtn.layer.borderColor = [UIColor lightGrayColor].CGColor;
        showImgBtn.layer.borderWidth = 5;
        [self addSubview:showImgBtn];
        
        rightLab = [[UILabel alloc] init];
        rightLab.bounds = CGRectMake(0, 0, 160, 20);
        rightLab.center = CGPointMake(180, labH);
        rightLab.font = [UIFont systemFontOfSize:15];
        rightLab.numberOfLines = 0;
        rightLab.lineBreakMode = NSLineBreakByWordWrapping;
        rightLab.textAlignment = NSTextAlignmentRight;
        rightLab.backgroundColor = [UIColor clearColor];
        rightLab.textColor = [UIColor brownColor];
        [self addSubview:rightLab];
    }
    return self;
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
